package com.niiwoo.civet.trade.dto.response;

import com.niiwoo.civet.trade.dto.common.SpeedLoanRateConfigDTO;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: wuke
 * @Description:
 * @Date: Created in 13:51 2017/11/14
 */
@Setter
@Getter
public class SpeedLoanConfigurationResponseDTO implements Serializable {
    private static final long serialVersionUID = -3440218583498714282L;

    //最高借款金额
    private BigDecimal maxLoanAmount;

    //最低借款金额
    private BigDecimal minLoanAmount;

    //可选借款期限
    private List<Integer> deadlineList;

    //借款可选标题
    private List<String> loanTitleList;

    //期限对应的利率配置
    private List<SpeedLoanRateConfigDTO> paramsRateList;

    //借款期限配置列表
    private List<DeadLineConfig> deadlineConfigList;

    //授信总额度
    private BigDecimal creditTotalLoanAmount;

    @Setter
    @Getter
    public static class DeadLineConfig implements Serializable{
        private static final long serialVersionUID = -1049909662437229629L;

        //最小借款金额
        private BigDecimal minAmount;

        //最大借款金额
        private BigDecimal maxAmount;

        //借款期限数组
        private List<Integer> deadLineList;

    }
}
